﻿using Grain.Strategy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Grain.Grain
{
    // [SamplePlacementStrategy]
    // [StatelessWorker]
    public class SiloCount : Orleans.Grain, ISiloCount
    {
        private int _count = 0;

        public Task AddCount()
        {
            _count++;
            return Task.CompletedTask;
        }

        public Task<int> GetSiloCount()
        {
            return Task.FromResult(_count);
        }
    }
}
